
class CollectionListTransferModel {
  dynamic pageNum;
  dynamic pageSize;
  dynamic totalPage;
  int? total;
  List<CollectionListTransferItem>? list;

  CollectionListTransferModel({this.pageNum, this.pageSize, this.totalPage, this.total, this.list});

  CollectionListTransferModel.fromJson(Map<String, dynamic> json) {
    pageNum = json["pageNum"];
    pageSize = json["pageSize"];
    totalPage = json["totalPage"];
    total = json["total"];
    list = json["list"] == null ? null : (json["list"] as List).map((e) => CollectionListTransferItem.fromJson(e)).toList();
  }

  static List<CollectionListTransferModel> fromList(List<Map<String, dynamic>> list) {
    return list.map(CollectionListTransferModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["pageNum"] = pageNum;
    _data["pageSize"] = pageSize;
    _data["totalPage"] = totalPage;
    _data["total"] = total;
    if(list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    return _data;
  }
}

class CollectionListTransferItem {
  int? id;
  String? collectionName;
  String? coverImageUrl;
  String? daoName;
  String? orderCode;
  String? orderStatus;
  String? createTime;
  double? payPrice;
  int? count;
  String? payType;
  String? icon;

  CollectionListTransferItem({this.id, this.collectionName, this.coverImageUrl, this.daoName, this.orderCode, this.orderStatus, this.createTime, this.payPrice, this.count, this.payType, this.icon});

  CollectionListTransferItem.fromJson(Map<String, dynamic> json) {
    id = json["id"];
    collectionName = json["collectionName"];
    coverImageUrl = json["coverImageUrl"];
    daoName = json["daoName"];
    orderCode = json["orderCode"];
    orderStatus = json["orderStatus"];
    createTime = json["createTime"];
    payPrice = json["payPrice"];
    count = json["count"];
    payType = json["payType"];
    icon = json["icon"];
  }

  static List<CollectionListTransferItem> fromList(List<Map<String, dynamic>> list) {
    return list.map(CollectionListTransferItem.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["id"] = id;
    _data["collectionName"] = collectionName;
    _data["coverImageUrl"] = coverImageUrl;
    _data["daoName"] = daoName;
    _data["orderCode"] = orderCode;
    _data["orderStatus"] = orderStatus;
    _data["createTime"] = createTime;
    _data["payPrice"] = payPrice;
    _data["count"] = count;
    _data["payType"] = payType;
    _data["icon"] = icon;
    return _data;
  }
}